package 工厂模式;

/**
 * @program: leetcode
 * @description:
 * @author: HuRan QQ1345122890
 * @create: 2021-11-07 13:19
 */
public class Main {
    public static void main(String[] args) {
        Factory factory=new IDCardFactory();
        final Product 小明 = factory.create("小明");

        final Product 胡冉 = factory.create("胡冉");
        小明.use();
        胡冉.use();

    }
}